www.gusucode.com > 基于Matlab的MIMO通信系统仿真 含报告;司中威;了解移动通信 > 基于Matlab的MIMO通信系统仿真 含报告;司中威;了解移动通信关键技术,了解数字通信系统仿真流程,实现基本的信道编译码、调制解调等通信模块。(好评如潮,课设拿满) 学习并实现MIMO空时处理技术 学习性能分析的思路和方法/mimo/matlab for mimo 2x2/gold.m
% This code is written for educational purpose. % This Gold code generator is using (5,3) and (5,4,3,2) ML generators. % If you have any question, contact Prof. Hyoung Joong Kim % through khj@kangwon.ac.kr % Ra is the (5,3) ML generator. % Rb is the (5,4,3,2) ML generator. % Output Rc has the Gold sequence generated. % The length of the Gold sequence is 2^5-1. % The values of Rc depends on the initial values of Ra and Rb. % In this example, initial values of Ra and Rb are all ones. clear; Ra=ones(1,5); Rb=ones(1,5); for i=1:31 Rc(i)=mod(Ra(5)+Rb(5),2); Ra=[mod(Ra(3)+Ra(5),2) Ra(1:4)]; Rb=[mod(Rb(2)+Rb(3)+Rb(4)+Rb(5),2) Rb(1:4)]; end Ra=[1 0 1 1 1]; Rb=ones(1,5); for i=1:31 Rd(i)=mod(Ra(5)+Rb(5),2); Ra=[mod(Ra(3)+Ra(5),2) Ra(1:4)]; Rb=[mod(Rb(2)+Rb(3)+Rb(4)+Rb(5),2) Rb(1:4)]; end plot(xcorr((2*Rc-1),(2*Rd-1)))